package com.chixing.config;

import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class XxlJobConfig {

    @Bean
    public XxlJobSpringExecutor xxlJobExecutor() {
//        XxlJobSpringExecutor executor = new XxlJobSpringExecutor();
//        executor.setAdminAddresses("http://localhost:8081/xxl-job-admin");
//        executor.setAppname("xxl-job-executor-sample");
//        executor.setIp("127.0.0.1");
//        executor.setPort(9999);
//        executor.setLogPath("/data/applogs/xxl-job/jobhandler");
//        executor.setLogRetentionDays(30);
//        executor.setAccessToken("default_token");
//        return executor;
        return null;
    }
}
